package com.wens.baselibrary.present

import android.content.Context
import com.wens.baselibrary.module.BaseModule
import com.wens.baselibrary.view.BaseView

public abstract class BasePresentImpl<V : BaseView, M : BaseModule>(protected val view: V) :
    BasePresent {
    protected val model: M by lazy { createModel() }

    protected abstract fun createModel(): M

    override fun getContext(): Context? {
        return view.getContext()
    }

}